package FWK.core;

import java.util.HashMap;
import java.util.Map;


public class FwkModelAndView {
	
	private Map<String, Object> parameters = null;
	private Class<? extends FwkInternalView> view = null;

	public FwkModelAndView() {
		parameters = new HashMap<String, Object>();
	}
	
	public Class<? extends FwkInternalView> getView() {
		return view;
	}
	
	public void setView(Class<? extends FwkInternalView> view){
		this.view = view;
	}
	
	public void addParameters(String paramName, Object param) {
		parameters.put(paramName, param);
	}
	public Object getParameter(String paramName) {
		return parameters.get(paramName);
	}

	public Map<String, Object> getParameters() {
		return parameters;
	}
}
